#ifndef controlContactDialog_H_
#define controlContactDialog_H_
#include <QtGui>
#include "codec.h"

class controlContactDialog : public QDialog
{
	Q_OBJECT
	public:
		controlContactDialog();
		QLineEdit *editName;
		QLineEdit *editPhone;
		QCheckBox *blackCheckBox;		
		QPushButton *saveButton;
		enum controlContact{save, del, send, cancel}controlContactSta;
		void setContext(QString name, QString phoneNum, bool black);
	public slots:
		void changeStateSave(){controlContactSta=save;accept();}
		void changeStateDel(){controlContactSta=del;accept();}
		void changeStateSend(){controlContactSta=send;accept();}
		void setSaveButtonEnable(const QString &);
		void blackStateChanged(int state);
};

#endif /* controlContactDialog_H_ */

